<?php
class SF_VendorAnnouncement_Block_Test extends Mage_Core_Block_Template
{
	
	protected function _toHtml()
	{
		return parent::_toHtml();
	}
	
	public  function getAnnouncementType()
	{
		$reader = Mage::getSingleton('core/resource')->getConnection('core_read');
		$sql = 'SELECT type_id,name FROM rumall_vendor_announcement_type WHERE del_flag=0';
		return $reader->fetchAll($sql);
	}
	
	public function getAuthorUserName()
	{
		return Mage::getSingleton('admin/session')->getUser()->getUsername();
	}
}